/**
 * Generate time : 2011-05-17 4:50:01
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cs.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCSBusinessFilter table comment : 业务过滤
 */
public class ZMCSBusinessFilter extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdModuleNo = " "; /* 模块编号 */
	private String fdNo = " "; /* 编号 */
	private String fdName = " "; /* 名称 */
	private String fdDefaultTypes = " "; /* 默认过滤类型 */
	private String fdLevel = " "; /* 级别 */
	private String fdRemarks = " "; /* 备注 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdModuleNo");
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("模块编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNo");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdName");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDefaultTypes");
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("默认过滤类型");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdLevel");
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("级别");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemarks");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCSBusinessFilter() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdModuleNo - 模块编号
	 * 
	 * @return the fdModuleNo
	 */
	public String getFdModuleNo() {
		return this.fdModuleNo;
	}

	/**
	 * set the fdModuleNo - 模块编号
	 */
	public void setFdModuleNo(String fdModuleNo) {
		this.fdModuleNo = fdModuleNo;
	}

	/**
	 * get the fdNo - 编号
	 * 
	 * @return the fdNo
	 */
	public String getFdNo() {
		return this.fdNo;
	}

	/**
	 * set the fdNo - 编号
	 */
	public void setFdNo(String fdNo) {
		this.fdNo = fdNo;
	}

	/**
	 * get the fdName - 名称
	 * 
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}

	/**
	 * set the fdName - 名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}

	/**
	 * get the fdDefaultTypes - 默认过滤类型
	 * 
	 * @return the fdDefaultTypes
	 */
	public String getFdDefaultTypes() {
		return this.fdDefaultTypes;
	}

	/**
	 * set the fdDefaultTypes - 默认过滤类型
	 */
	public void setFdDefaultTypes(String fdDefaultTypes) {
		this.fdDefaultTypes = fdDefaultTypes;
	}

	/**
	 * get the fdLevel - 级别
	 * 
	 * @return the fdLevel
	 */
	public String getFdLevel() {
		return this.fdLevel;
	}

	/**
	 * set the fdLevel - 级别
	 */
	public void setFdLevel(String fdLevel) {
		this.fdLevel = fdLevel;
	}

	/**
	 * get the fdRemarks - 备注
	 * 
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}

	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdModuleNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModuleNo")), fdModuleNo));
		setFdNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdDefaultTypes(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDefaultTypes")), fdDefaultTypes));
		setFdLevel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdLevel")), fdLevel));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdModuleNo", StringUtils.toString(fdModuleNo, eiMetadata.getMeta("fdModuleNo")));
		map.put("fdNo", StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));
		map.put("fdName", StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));
		map.put("fdDefaultTypes", StringUtils.toString(fdDefaultTypes, eiMetadata.getMeta("fdDefaultTypes")));
		map.put("fdLevel", StringUtils.toString(fdLevel, eiMetadata.getMeta("fdLevel")));
		map.put("fdRemarks", StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));

		return map;

	}
}